$(document).ready(function(){
	var followDisplay = new FollowDisplay("#blogs li");
});

function FollowDisplay(blogStr){
	this.$blogs = $(blogStr);
	this.$blogs.mouseover(function(){
		$(this).find(".follow").css("display", "block");
	}).mouseout(function(){
		$(this).find(".follow").css("display", "none");
	});
	this.$follows = this.$blogs.children(":first-child");
	this.$follows.click(function(){
		var _this = this;
		var url = $(this).attr("href");
		$.get(url, {}, function(data){
			if(data != true)
				$(_this).remove();
		});
		
		return false;
	});
}
